package com.cmas.platform.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cmas.platform.domain.Section;
import com.cmas.platform.vo.PostVo;
import com.cmas.platform.vo.SectionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.cmas.platform.domain.Post;

import java.util.List;

/**
 * 帖子管理Mapper接口
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-03-15
 */
@Mapper
public interface PostMapper extends BaseMapper<Post>
{

    /**
     * 批量删除帖子管理
     * @param ids 需要删除的帖子管理ID集合
     * @return
     */
    public int deletePostByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    public List<PostVo> selectPostList(@Param(Constants.WRAPPER) QueryWrapper<Post> setQueryWrapper);


}
